import request from '@/utils/request'

// 查询用户邀请码列表
export function listInvitationCode(query) {
  return request({
    url: '/invitationCode/invitationCode/list',
    method: 'get',
    params: query
  })
}
// 查询用户邀请码列表
export function listInvitationCodeListAll(query) {
  return request({
    url: '/invitationCode/invitationCode/listAll',
    method: 'get',
    params: query
  })
}


// 查询用户邀请码详细
export function getInvitationCode(id) {
  return request({
    url: '/invitationCode/invitationCode/' + id,
    method: 'get'
  })
}

// 新增用户邀请码
export function addInvitationCode(data) {
  return request({
    url: '/invitationCode/invitationCode',
    method: 'post',
    data: data
  })
}

// 修改用户邀请码
export function updateInvitationCode(data) {
  return request({
    url: '/invitationCode/invitationCode',
    method: 'put',
    data: data
  })
}

// 删除用户邀请码
export function delInvitationCode(id) {
  return request({
    url: '/invitationCode/invitationCode/' + id,
    method: 'delete'
  })
}
